/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fmsactionserver.server.shareserver;

import java.util.Date;

/**
 *
 * @author rbs
 */
public class ShareCommand {
    private final ShareCommandType type;
    private Date date;
    
    public ShareCommand(String input)
    {
        String[] split = input.split("#");
        this.type = ShareCommandType.valueOf(split[0]);
        switch (type)
        {
            case GET_ALL:
                break;
            case GET_SINCE_DATE:
                date = new Date(Long.parseLong(split[1]));
                break;
        }
    }

    public ShareCommandType getType() {
            return type;
    }

    public Date getDate() {
        return date;
    }

    
}
